#!/bin/bash
#
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#

echo ""
echo "run go-mysql-elasticsearch success"

ps -ef | grep go-mysql-elasticsearch | grep -v grep | awk '{print $2}' | xargs kill -9

rm -rf ./syncdb/*

./bin/go-mysql-elasticsearch -config=./sync-config/river.toml # > sysn.log 2>&1 &

